package com.qztc.hire_end_dto.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

@TableName("member_bridge")
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Schema(title = "会员等级与权限的关联信息")
public class MemberBridge extends Model<MemberBridge> implements Serializable {
    @Schema(title = "关联记录id")
    @TableId(value = "member_bridgeid") // 自增主键，便于单独操作关联关系
    private int memberBridgeId;

    @Schema(title = "会员等级id，外键")
    @TableField(value = "member_id")
    private int memberId;

    @Schema(title = "会员权限id，外键")
    @TableField(value = "member_privilegeid")
    private int memberPrivilegeId;

    @Schema(title = "是否拥有该权限，1-拥有，0-不拥有")
    @TableField(value = "is_have")
    private int isHave;
}